task 1 submission#32
Merged
MontessoriVisualization merged 1 commit intoMay 8, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds several student exercise files (HTML/CSS/JS and Python) under Students/Aakriti/ and updates a JavaScript tutorial example under getStarted/js/.
Changes:
- Added multiple new HTML pages demonstrating DOM manipulation and simple counters.
- Added a new CSS/HTML version of the “letslearn” page with dropdown navigation.
- Modified the
addArrowexample ingetStarted/js/Function.js.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| Students/Aakriti/try1.html | New DOM script that rewrites an anchor link/label. |
| Students/Aakriti/Python/task1.py | New “smart checkout” exercise implementation (Python). |
| Students/Aakriti/Python/class.py | New even/odd input script. |
| Students/Aakriti/letslearn.html | Reworked page structure with navbar and dropdown menus. |
| Students/Aakriti/letslearn.css | New navbar/dropdown styles and trustbox styling. |
| Students/Aakriti/inc_dec_btn.html | New increment/decrement counter page. |
| Students/Aakriti/display.html | New page for rendering a list of users to the DOM. |
| Students/Aakriti/cocacola.html | New quantity/price increment-decrement example. |
| Students/Aakriti/click.html | Fixes click handler to update button text via DOM query. |
| Students/Aakriti/bgcolor_change.html | New “change background” button page. |
| getStarted/js/Function.js | Changes arrow-function example implementation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| print(TotalPricewithTax) | ||
|
|
||
| CuponCode =" DisCOunT10 " | ||
| print(CuponCode.strip().upper()) |
Comment on lines
+51
to
+68
| print(TotalPrice) | ||
|
|
||
| TotalPricewithTax= TotalPrice+(10/100)*TotalPrice | ||
| print(TotalPricewithTax) | ||
|
|
||
| CuponCode =" DisCOunT10 " | ||
| print(CuponCode.strip().upper()) | ||
| if CuponCode=="DISCOUNT10": | ||
| TotalPrice-=500 | ||
|
|
||
| if TotalPrice<= WalletBalance: | ||
| NewBalance=WalletBalance-TotalPrice | ||
| print(f"Purchase Sucessfull New Balance={NewBalance}") | ||
| OrderID=random.randint(1,101) | ||
| print(f" {OrderID} Confimed!!!! Thankyou for shopping") | ||
|
|
||
| else: | ||
| MissingBalance=TotalPrice-WalletBalance |
| if TotalPrice<= WalletBalance: | ||
| NewBalance=WalletBalance-TotalPrice | ||
| print(f"Purchase Sucessfull New Balance={NewBalance}") | ||
| OrderID=random.randint(1,101) |
Comment on lines
+2
to
+36
| # Objective: Create a JavaScript program that simulates a simple shopping cart checkout process. | ||
|
|
||
| # Instructions for Students: | ||
| # Write a code script that performs the following steps in order: | ||
|
|
||
| # Setup the Store: | ||
|
|
||
| # Create a const variable for walletBalance and set it to 5000. | ||
| # Create an array called cartItems containing three prices: [500, 1200, 350]. | ||
| # Manage the Cart (Array Operations): | ||
|
|
||
| # A new item is added! Use .push() to add a price of 2000 to the cart. | ||
| # Oops, that item is too expensive. Use .pop() to remove the last item. | ||
| # Create a new array called recommendedItems with prices [100, 200]. | ||
| # combine recommendedItems and cartItems into a new array called finalCart using the Spread Operator (...). | ||
| # Calculate Totals (Math & Operators): | ||
|
|
||
| # Calculate the sum of the prices in finalCart (Hint: since we don't have loops yet, access them manually like finalCart[0] + finalCart[1]...). | ||
| # Store this sum in a variable totalPrice. | ||
| # Add a 10% tax to the logic. Update totalPrice to include the tax. | ||
| # Round the totalPrice to 2 decimal places using .toFixed(). | ||
| # Coupon Code Handling (String Manipulation): | ||
|
|
||
| # Create a variable couponCode with the messy value " DisCOunT10 ". | ||
| # Clean up the code: Remove the whitespace using .trim() and convert it to uppercase. | ||
| # If the cleaned code is "DISCOUNT10", subtract 500 from the totalPrice. | ||
| # Final Decision (Conditionals): | ||
|
|
||
| # Write an if/else statement: | ||
| # If totalPrice is less than or equal to walletBalance: Console log "Purchase Successful! New Balance: [Remaining Amount]". | ||
| # Else: Console log "Insufficient Funds! You need [Missing Amount] more." | ||
| # Receipt Generation (Randomness): | ||
|
|
||
| # Generate a random Order ID between 1 and 100 using Math.random() and Math.floor(). | ||
| # Console log a receipt message using Template Literals (backticks): Order [ID] confirmed. Thank you for shopping! |
Comment on lines
+19
to
+22
| console.log(btn.innerText) | ||
| btn.innerText += "Clicked"; | ||
| btn.style.backgroundColor= "green"; | ||
| console.log(btn) |
Comment on lines
+11
to
+34
| <h3 id="cid">1</h3> | ||
| <h3 id="price"></h3> | ||
| <button id="decButton">-</button> | ||
| <button id="incButton">+</button> | ||
|
|
||
| <script> | ||
|
|
||
| let count=0; | ||
| const price =80; | ||
| let total=0; | ||
| const cocaColaId=document.getElementById('cid'); | ||
| const priceCocacola=document.getElementById('price'); | ||
| const decButton =document.getElementById('decButton'); | ||
| const incButton=document.getElementById('incButton'); | ||
|
|
||
| priceCocacola.innerHTML= price; | ||
|
|
||
| incButton.addEventListener("click", function(){ | ||
|
|
||
| total+=price; | ||
| priceCocacola.innerHTML=total; | ||
| count++; | ||
| cocaColaId.textContent=count; | ||
| }); |
Comment on lines
+25
to
+26
| count--; | ||
| counterElement.textContent = count; |
Comment on lines
+60
to
+70
| sectionss .trustbox{ | ||
| background-color: white; | ||
| border: 1px solid orangered; | ||
| color:orangered; | ||
| border-radius:14px; | ||
| margin:auto; | ||
| padding:8px; | ||
| width:200px; | ||
| position: relative; | ||
| left:0; | ||
| } No newline at end of file |
| <li><a href="#">Microsoft Office Package Course</a></li> | ||
| </ul> | ||
| </li> | ||
| <li><a href="#">Ater SEE</a></li> |
Comment on lines
+20
to
+21
| const addArrow = a=> { | ||
| console.log(a ); |
c8ed78a
into
MontessoriVisualization:main
3 of 7 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.